package com.alex.bean;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class Car {

    public void hello() {
        System.out.println("hello");
    }

    @PostConstruct
    public void init() {
        hello();
    }
}
